// models/dining_statistic.go
package models

import (
	"time"
)

type MenuDiningStatistic struct {
	ID           uint      `gorm:"primaryKey" json:"id"`
	Date         string    `gorm:"type:date" json:"date"`        // 就餐日期
	Weekday      string    `json:"weekday"`                      // 星期几
	MealType     int       `gorm:"type:tinyint" json:"mealType"` // 1-早餐 2-午餐 3-晚餐
	PeopleCount  int       `json:"peopleCount"`
	CanteenFloor string    `json:"canteenFloor"` // 食堂楼层
	CreatedBy    int       `json:"createdBy"`    // 创建人 用户ID
	CreatedAt    time.Time `json:"createdAt"`
	UpdatedAt    time.Time `json:"updatedAt"`
}

// 用餐类型常量
const (
	MealTypeBreakfast = 1
	MealTypeLunch     = 2
	MealTypeDinner    = 3
)
